import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import ParkingMenu from '../components/ParkingMenu'
import Login from '../components/Login'
import StallInfo from '../components/StallInfo'
import StallCheck from '../components/StallCheck'
import CertifiedInfo from '../components/CertifiedInfo'
import DataInfo from '../components/DataInfo'


import OrderInfo from '../components/order/OrderInfo'
import OrderOvertime from '../components/order/OrderOvertime'
import OrderComment from '../components/order/OrderComment'
import EntranceInfo from '../components/order/EntranceInfo'
import OrderLog from '../components/order/OrderLog'
import CertifiedMoney from '../components/order/CertifiedMoney'


Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {//登录
      path: '/',
      redirect:'login'
    },
    {//登录
      path: '/login',
      component: Login
    },
    {//物业菜单
      path: '/parkingMenu',
      component: ParkingMenu,
      children:[
        // 以下六个为订单模块路由(暂定)
        {
          // 1. 订单信息
          path: '/OrderInfo',
          name: 'OrderInfo',
          component: OrderInfo
        },
        {
          // 2. 超时订单
          path: '/OrderOvertime',
          name: 'OrderOvertime',
          component: OrderOvertime
        },
        {
          // 3. 订单评论
          path: '/OrderComment',
          name: 'OrderComment',
          component: OrderComment
        },
        {
          // 4. 进出信息
          path: '/EntranceInfo',
          name: 'EntranceInfo',
          component: EntranceInfo
        },
        {
          // 5. 订单日志
          path: '/OrderLog',
          name: 'OrderLog',
          component: OrderLog
        },
        {
          // 6. 物业流水
          path: '/CertifiedMoney',
          name: 'CertifiedMoney',
          component: CertifiedMoney
        },
        {
          // 7. 车位信息
          path: '/StallInfo',
          name: 'StallInfo',
          component: StallInfo
        },
        {
          // 8. 车位审核
          path: '/StallCheck',
          name: 'StallCheck',
          component: StallCheck
        },
        {
          // 8. 物业信息
          path: '/CertifiedInfo',
          name: 'CertifiedInfo',
          component: CertifiedInfo
        },
        {
        // 9. 统计数据
          path: '/DataInfo',
          name: 'DataInfo',
          component: DataInfo
        },

      ]
    },

  ]
})
